home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2004 August / The Sunday Times - The Month 2004-08.iso / pc / engine / swf / dialogs.swf / scripts / frame_1 / DoAction.as < prev   
Encoding:
Text File  |  2004-03-31  |  1.5 KB  |  75 lines

  1. function goConfirm()
  2. {
  3.    this.blnExit = true;
  4.    gotoAndStop("confirm");
  5. }
  6. function goBrowser()
  7. {
  8.    gotoAndStop("browser");
  9. }
  10. function goBrowserConfirm()
  11. {
  12.    gotoAndStop("browser_confirm");
  13. }
  14. function externalDialog(strFile)
  15. {
  16.    gotoAndStop("external");
  17.    mc_file.loadMovie(strFile + ".swf");
  18. }
  19. function lingo(str)
  20. {
  21.    getURL("lingo:" + str,"");
  22. }
  23. function dialogsHide()
  24. {
  25.    lingo("spriteDialog.hide()");
  26. }
  27. function webPageGo()
  28. {
  29.    lingo("Flsh_webPageGo");
  30. }
  31. function goCredits()
  32. {
  33.    trace("Flash is trying to send Director to SpriteShell.showCredits()");
  34.    lingo("spriteShell.showCredits()");
  35. }
  36. function exitCancel()
  37. {
  38.    connTardisSend.onStatus = function(infoObject)
  39.    {
  40.       dialogsHide();
  41.       delete this.onStatus;
  42.    };
  43.    connTardisSend.send("Tardis","exit_cancel");
  44. }
  45. function goForms()
  46. {
  47.    connTardisSend.send("Tardis","UsageData_markExit");
  48.    connTardisSend.send("Tardis","ConnCheck_stopTimer");
  49.    xmlIssue = new XML();
  50.    xmlIssue.onLoad = function(success)
  51.    {
  52.       gotoAndStop("forms");
  53.       ndForm = this.firstChild.byPath("exit/form");
  54.       var _loc1_ = ndForm.attributes.swf;
  55.       mc_survey.loadMovie(_loc1_);
  56.       delete xmlIssue;
  57.    };
  58.    xmlIssue.load("../../assets/xml/issue.xml");
  59. }
  60. function browserComplete()
  61. {
  62.    if(this.blnExit == true)
  63.    {
  64.       goForms();
  65.    }
  66.    else
  67.    {
  68.       dialogsHide();
  69.    }
  70. }
  71. stop();
  72. optin = null;
  73. connTardisSend = new LocalConnection();
  74. lingo("spriteDialog.ready()");
  75.